import sjh from '../axios'
function List(count, limitNum, category) {
    return sjh.get('/admin/pro/list', { params: { count, limitNum, category } })
}
function upd(id, obj) {
    return sjh.patch('/admin/pro/product/' + id, obj)
}
function Dele(id) {
    return sjh.delete('/admin/pro/product/' + id)
}
function add(obj) {
    return sjh.post('/admin/pro/product', obj)
}
export { List, upd, Dele, add }